<div id="content">

<form action="" method="post" id="saveReviewTime_ids">
<div class="setup-title clearfix">
<h2>设置考评月</h2>
<table>
<tr>
<td class="tdLabel"></td>
<td
><select name="chooseYear" id="chooseYear" onchange="changeyear()">
<?php for($i=2012;$i<date('Y')+3;$i++):?>
<option value="<?=$i?>" <?php if($curr_year==$i):?>selected="selected"<?php endif;?>><?=$i?></option>
<?php endfor;?>


</select>
</td>
</tr>
</table>
</div>
<ul class="month-list clearfix">
<?php for($i=1;$i<13;$i++):?>
<li><input type="checkbox" id="checkboxMonth_<?=$i?>" name="chooseMonth[]" <?php if($curr_year <date('Y') || (!empty($last_month) && $i<=$last_month['e_month'])):?>disabled="disabled"<?php endif;?> <?php if(in_array($i,$all_month)):?>checked="checked"<?php endif;?> value="<?=$i?>"><label for="checkboxMonth_<?=$i?>"><?=$i?>月</label></li>
<?php endfor;?>
        </ul>
                <div style ="height:20px;margin:10px 20px;">
                <span style="color:red;font:14px bold"></span>
        </div>
        <input type="button" value="确认提交" class="submit-btn-setup" onclick="submitScale();" />
                </form>
    </div>
<?php $this->script_block_begin(); ?>
<script type="text/javascript">
function submitScale(){
    	$('#saveReviewTime_ids').submit();
    }
    function changeyear(){
    	window.location.href='<?=Util_JxUrls::setting_url('SetMonth')?>?year='+$("#chooseYear").val();
    }
    </script>
<?php $this->script_block_end(); ?>